package com.lsj.order.service.impl;
import java.math.BigDecimal;

import com.lsj.order.bean.Order;
import com.lsj.order.service.OrderService;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {
    @Override
    public Order createOrder(Long productId, Long userId) {
        Order order = new Order();
        order.setId(0L);
        order.setTotalAmount(new BigDecimal("0"));
        order.setUserId(0L);
        order.setNickName("张三");
        order.setAddress("昆山");
        order.setProductList(null);
        return order;
    }
}
